package com.coder4j.auth.mapper;

import com.coder4j.starter.mybatis.BaseMapper;
import com.coder4j.auth.entity.AuthRoleEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.Arrays;
import java.util.List;

/**
 * 角色
 *
 * @author keller
 * @date 2024-05-07 17:51:15
 */
@Mapper
public interface AuthRoleMapper extends BaseMapper<AuthRoleEntity> {
    /**
     * 默认查询条件
     *
     * @return
     */
    @Override
    default List<String> defaultCondition() {
        return Arrays.asList(
                baseEqualsCondition("create_id"),
                baseEqualsCondition("update_id"),
                baseEqualsCondition("is_deleted"),
                baseLikeCondition("name"));
    }
}
